//
//  TestProblem645.swift
//  LeetCodeTests
//
//  Created by 武侠 on 2023/6/21.
//  Copyright © 2023 zhulongiMac02. All rights reserved.
//

import XCTest
@testable import LeetCode

final class TestProblem645: XCTestCase {

    var problem = Problem645()
    
    override func setUp() {
        super.setUp()
        // Put setup code here. This method is called before the invocation of each test method in the class.
    }
    
    override func tearDown() {
        // Put teardown code here. This method is called after the invocation of each test method in the class.
        super.tearDown()
    }
    
    // MARK: - 排序
    func testProblem645_Case1() throws {
        XCTAssertEqual(problem.findErrorNums([1,2,2,4]), [2,3])
    }
    
    func testProblem645_Case2() throws {
        XCTAssertEqual(problem.findErrorNums([1,1]), [1, 2])
    }
    
    func testProblem645_1_Case1() throws {
        XCTAssertEqual(problem.findErrorNums1([1,2,2,4]), [2,3])
    }
    
    func testProblem645_1_Case2() throws {
        XCTAssertEqual(problem.findErrorNums1([1,1]), [1, 2])
    }
}
